<template>
  <div>
    <van-nav-bar :title="title" left-text="返回" left-arrow @click-left="Esc">
      <template #right>
        <van-icon name="search" />
      </template>
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
  },
  methods: {
    Esc() {
      window.history.back();
    },
  },
};
</script>

<style scoped>
</style>